<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
    <style>
        img{
            width: 100px;
            height: 100px;
        }
        .box{
            width: 100px;
            height: 100px;
            background-color: pink;
        }
    </style>
</head>

<body>
    <div id="app">
        <!-- 
            v-bind 属性绑定
                v-bind:属性="属性值"
                ：属性="属性值"
         -->

        <a v-bind:href="info.href" v-bind:target="info.target">{{ info.con}}</a>

        <img :src="imgs.src" :alt="imgs.alt" :title="imgs.title">

        <div :class="calssname">abc</div>
    </div>
    <script>
        new Vue({
            el: '#app',
            data: {
                info:{
                    con:'百度',
                    href:"https://www.baidu.com",
                    target:'_blank'
                },
                imgs:{
                    src:'https://v2.cn.vuejs.org/images/logo.svg',
                    alt:'暂无图片',
                    title:'vue'
                },
                classname:'box'
            }
        })
    </script>
</body>

</html>